package com.xqboss.apps.domain.user;


import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xqboss.apps.domain.BaseTable;
import com.xqboss.apps.enums.user.WalletChangeDirectionEnum;
import com.xqboss.apps.enums.user.WalletWrenchChangeTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户资产-扳手流水记录
 *
 * @author makejava
 * @since 2023-12-07 14:09:52
 */
@Data
@ApiModel("用户资产-扳手流水记录")
public class UserAssetWrenchRecord extends BaseTable {


    @TableId(type = IdType.AUTO)
    private Long id;


    @ApiModelProperty("用户id")
    private Long userId;


    @ApiModelProperty("金额")
    private BigDecimal amount;


    @ApiModelProperty("出入方向")
    private WalletChangeDirectionEnum direction;


    @ApiModelProperty("变动前金额")
    private BigDecimal amountBefore;


    @ApiModelProperty("变动后金额")
    private BigDecimal amountAfter;


    @ApiModelProperty("变动类型")
    private WalletWrenchChangeTypeEnum changeType;


    @ApiModelProperty("源id")
    private Long sourceId;

    @ApiModelProperty("备注")
    private String remark;

}
